﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsWeChartDemo.Models
{
    public class MessageQueueModel
    {
        public Message message { get; set; }

        public SendMessageModel sendMessageModel { get; set; }

        public MessageQueueModel(Message msg, SendMessageModel config)
        {
            message = msg;
            sendMessageModel = config;
        }
    }

    public class Message
    {
        public Message()
        {
            data = new Dictionary<string, DataModel>();
        }
        public string touser { get; set; }

        public string template_id { get; set; }

        public string url { get; set; } = "http://zainzhou.xicp.io";

        public string topcolor { get; set; }

        public Dictionary<string, DataModel> data { get; set; }
    }

    public class DataModel
    {
        public string value { get; set; }

        public string color { get; set; }
    }
}
